package com.dana.system.service.exam;


import com.baomidou.mybatisplus.extension.service.IService;
import com.dana.system.domain.exam.ExamQuestion;
import com.dana.system.domain.exam.dto.ExamAddDTO;
import com.dana.system.domain.exam.dto.ExamAddQuestionDTO;
import com.dana.system.domain.exam.dto.ExamEditDTO;
import com.dana.system.domain.exam.dto.QueryExamDTO;
import com.dana.system.domain.exam.Exam;
import com.dana.system.domain.exam.vo.ExamDetailVO;
import com.dana.system.domain.exam.vo.ExamVO;

import java.util.List;

public interface IExamService extends IService<ExamQuestion> {
    List<ExamVO> getList(QueryExamDTO queryExamDTO);

    Long add(ExamAddDTO examAddDTO);

    boolean addQuestion(ExamAddQuestionDTO examAddQuestionDTO);

    ExamDetailVO detail(Long examId);

    int edit(ExamEditDTO examEditDTO);

    int delete(Long examId, Long questionId);

    int deleteExam(Long examId);

    int publish(Long examId);

    int cancelPublish(Long examId);
}
